﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RightMenu.ascx.cs" Inherits="com.cngrain.SAFC.Web.res.inc.RightMenu" %>

<script src="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()%>/res/js/common/jquery.min.js"
    type="text/javascript"></script>

<script src="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()%>/res/js/common/jquery.contextmenu.r2.js"
    type="text/javascript"></script>

<div class="contextMenu" id="myMenu1" style="display: none;">
    <ul oncontextmenu="self.event.returnValue=false" onselectstart="return false">
        <li id="refresh">
            <img src="<%=com.cngrain.SAFC.Common.CommonSet.BaseUrl()%>/res/images/framework/icons/refresh.png">
            刷新 </li>
    </ul>
</div>

<script type="text/javascript">

    $(document).ready(function() {

        $('body').contextMenu('myMenu1', {
            bindings: {
                'refresh': function(t) {
                    location.reload();
                },
                'custom': function(t) {
                    openPanelWithOutMenu('CustomMenu', '自定义菜单', 'customMenu.aspx');
                },
                'save': function(t) {
                    alert('Trigger was ' + t.id + '\nAction was Save');
                }
            }
        });
    });
  </script>

